fixed name in log and proximity support

no longer uses the textfield to get coordinates
created functions to avoid some duplication of code
added proximity sensor support, closes app if you cover the sensor