adding lbf gazetteer features
major reestructuring of training functionalities