Added code for more modes
Fixed board.h for timer Input Capture