adding polymorphic weighting updates to layer class
finished the weighting for the layer class
got the reweighting in the autoencoder class as well
no compile errors
Merging features/weighted into release.
Merging release into master.