Fixed the new line insertion. Fixed #16