patch 3.1

check readme.md for patch notes
patch 3.1 final

fixed a few bugs
Merge pull request #8 from vaendryl/master

update to beta 3.1