moved hooks to their own library
renamed time to timer

renamed time to timer and added a few timer functions