Fix a heap of errors, allow debugging of gps ticks