Add some handy array IO methods

A little bit of code tidying and renaming done to make
reading easier on the eye