Updated logging functions

Added logMem() to track memory leaks.

Added colors in terminal for logError() and
logMem().