pep8ed code
added basic testing script, more pep8