fixes #12: wrap long lines in console input and output

fixes #12