Pass 4 refactoring in response to feedback on pull request.

Changes:
- Documentation
- Removed redundant code in executor
- Cleanup metadata
- Use utility methods for reading/writing primitive arrays
- Use consistent enum conventions
- Remove remaining dead code relating to saving indices

Addresses issue: #5407