Removing unneccessary newlines and cleaning up doc