Merge pull request #1 from tpltnt/master

syntax fixes and readme enhancements
Merge pull request #3 from tpltnt/master

cleanup + tests
added license. fixes #1
fixed pep8 issues