Lots of changes
Bugfix to exclude input lines with all spaces