Added backtrace to logger and improved documentation