removed old code that has been commented out
removed .bak files
traded ego for docstring
removed more .bak files
use Map for storing composition rules