he was suffering , he explained truthfully to the young sharp-nosed doctor , from intermittent but severe headaches , also insomnia , irritability and occasional visual disturbances in the form of colored patterns .