Fixed bugs in trace

Made trace functions accessible in the global scope.
Made text tracing print without color modification.
Changed old function name in format message to new one.