added comments in code and a 'random color' option