added some structuring to the definitions
explanation of chain import