Fixed file modes
Simplified main.cpp
Fixed Colour::Distance rounding error; fixes the ANSIConsoleRenderer colours.