Fixed bug in PID where time wasn't being taken into account.  Also taking credit for files because (1) I refactored them quite a bit and mainly (2) If any one has questions or if anything is wrong I'll take the blame.