add simple tracing API
Merge pull request #141 from ModuleLoader/trace

add simple tracing API