changed constructors on neural nets to require fanin