Refactored module distribution; added inheritance utils.