Fixed bugs in Timer16 library