resolves #96 sort_reverse field added to form
white space removed from ends of lines