added automaticOrientation support
removed some generated comments
added automaticOrientation support
removed some generated comments