Updated main to add a new line before echoing line for print - seems to work