Write some docs for modularity and extensions

These are documents to help with the understanding of modularity and extensions