[cleanup] Applied codestyle, fixed compiler warnings