small fixes and remove newline character from delimiter