added function for newline printing, removed newlines in list response.