added mt_trace / MT_ENABLE_TRACE, cleaned up source code formatting