Cleaned up code with certain fixes for the Arduino Port

Final cleaned and updated code which is tested for the following modules
- Timer
- Bluetooth Radio
- Series 1 Radio
- Series 2 Radio