Fix code style warnings and use slf4j where appropriate - Fixes #117