Merge pull request #210 from csmith/master

Fix various deprecated uses.
Add a way to specify event colours.