Cleaned up code. Made it so that JSON is all collapsed by default.