added requirements file, did some whitespace/PEP8 cleanup

Other than adding the requirements file, all I did was make whitepsace changes to make the code more readable and comply with PEP8. I'll do some other refactoring later.