fix line endings
some improvements concerning user interaction