truncate long lines in traceback

add colors to output
bugfix: flush doesn't exist
rename basic.doc -> basic.txt