Provisional changes for structured learning. Main purpose was to write features, labels and constraints for structured learning with sbmrm. Some cleanup remains to be done.