Fix codesniffer complaints

This also includes the removal of files that are no longer needed or no longer work.

Fixes #269