EOR handling, date and time formatting, trimming empty records
removing crappy bash version and early perl
cleaning up
cleaning up
adding default global fields