working on add/remove sites and add/remove matrices. This version of code does not work yet.