improve and allocate trace
add trace() to readme