Theoretical aspects of the photochemistry of methanol, methylamine, and related materials