started improving the complexity of the ActionsBag (previously called OptionsBag), improved names of variables