added Application classes to initialize program for each platform
fixed shutdown of the input system