[cleanup] Applied codestyle, fixed compilation warnings