Code Cleanup: Hud Class, functions moved, DemoApp file smaller, IOS/OSX ...

...#ifs