clean whitespace
- add check for input file
- add default output file if none is given