updated readme, cleaned up code in JSONServer