strip newline from incoming content
fixed bug and updated readme