[cleanup] Applied codestyle, improved comments, reduced logging verbosity