cleaned up some code for getting times

monday march 3rd 2pm.
also added head position output