Added debugging memory checks to the layers, still adding multilabel changes, but only in testing, training seems to work.