Fix colour codes on terminals that don't support them, fix NPE when reloading + some other bug fixes

This fixes CE-414 and CE-416