Fixes warnings and errors

Mostly intruduced by recent changes regarding formatters. Closes #49
Merge pull request #50 from leonkunert/master

Fixes warnings and errors