commented out main method
removed some warnings