Tickmarks now functional.  getDuration() is called correctly by changing the if statement in the polling
cleaned up code, small bug fixes