Added comments, tests and bounds checking for MultiArray.