A bunch of minor things I did when I got the code...

Added some docs, code formatted (autopep8), trimmed whitespaces, added helper files to import on Eclipse.