Various changes hopefully first working timer
fix code
now fully working