Can now remove Matrices

Also made a rebuildMatrix function to reset the Matrix