Fixed the formatting and grammar. Also made it clear that `malloc()` is generally discouraged for use in C++. See [here](https://stackoverflow.com/questions/45105100/when-and-why-we-must-use-the-malloc) for more info.
Changed how to free memory assigned to a pointer to an array of object. Also added information about how to check for memory leaks with valgrind.