version 2 written, added documention and README