refactorised, and add colour options
Add colours and start of code to make mask