updated readme, finished tests, added class file