Added clang analysis and fixed some bugs it found.
Added support for changing border colours.