Fixes broken newlines, whitespace and a missing period