code polish
updated comments
updated readme, added test classes
updated readme, testclasses and fixed code