add some basic comments to Trainer