fix some codestyle, add missing docblocks