Cleaned up code
Added 1D arrays and cleaned up code some more
Made indentation and bracing more consistent
Work on N-Dimensional arrays