Added logging capabilities

Added support for logging, and stdout ANSI
coloured logging