updated readme, fixing tests, simplifying app code