Made more edits to allow JSON communication between android and server