Cleans up code and adds a newline for text