added more functionality around DBN's preTrain method, still WIP