[misc] Improved codestyle, fixed typo