Reformatting of existing files; added tests and minor features such as an initializer and pretty printing for MultiArray.