added some more nerual network framework code