simplifing code and expanding docs
fix version number in readme