Additional bug fixes. Added the return character to the results file