Fixes warnings and errors

Mostly intruduced by recent changes regarding formatters. Closes #49