Fixed bug with the colours

Also implemented the saving with XML