Updated to use latest timer library

Also added arduino test code