Final round of cleanup, added comments, also forgot an "update" operation so added that.