timers_and_more_cleaning

Added the timer for updating, and did some more cleaning. Will start my
way towards plugin support now.