Added sed command for new line at the end of file.
Updated documentation.