fixed some minor bugs, added the ability to save and load nnets