added cleardata, getinput, and validate input functions. working on
converting to decimal degree and json object