GPS files

Cleaned (ie tabbed) version of chris and rory's code, along with a small
test function i'm working on. Ifyo want to compile it on the pi, use the
flags in the first line.