trying suggested changes
indent error
where does this go?
removed encoding keyword from ST2 version
cleaned up indentation
Merge pull request #5 from jvsteiner/master

implemented your suggestions, tested working on ST2