Use mapping to find correct method to specify parameters for sheets
Bugfix in method name setup_training_patterns, small cosmetic fixes