Fix Lint errors and warnings

Not all of them, but a lot.

Fixes #14