cleaned up documentation and added debugging output to GPS script