now supports both 5 column and 3 column format. throws warning when line not ascii decodable
fixes so that output can be redirected to a file