Major cleanup of code (with the help of pylint).

Explanatory comments are removed from the code as they are unnecessary to the programmer. If the code needs to be explained, it should be done in another way.
Add script to run tests and add pylint.