Pedant alert

1. make failures log
2. remove most compiler warnings
3. make every file I touched be green in IntelliJ with default settings