Bug fixes and push to v3.1
Added documentation to README.md