Removed all compile warnings and applied formatting to all classes