Altered feature function definition and interaction to allow for smart storage of features and weights. Note unfinished SaveFunction in Shared.js which needs to be finished ASAP and most likely renamed.