Synced refresh rate of colourBox and colourText and refactored code
Merge pull request #10 from PeterChu2/fix/refactor_and_update_colourBox_refresh_rate

Synced refresh rate of colourBox and colourText and refactored code