Stylized the codebase according to guidelines I collected from across the web, cleared all compilation warnings on the way