Cleared memory leaks and revised spacing around symbols.

Cleared leaks caused by using `PyArray_SimpleNewFromData`.
Some fixes and more refinement.