minor bugfixes

Added carriage return after each paragraph is printed to file.
Added -hdr and -ftr switches