added comments to Network

added asserst in Network::learn and Network::compute