Add basic functionality and example files

Needs support for environment groups e.g. _ {g, k}