Revised array allocation, documentation, and updated changes.