Fixed some time shift and orientation issues cleaned up a few functions