fixed dropout net.train=false/true, added weight reinitialization