Added mutableArrays, and misc cleanup
Better idea for local variables