added timers and file functionality