Updated to use jinja template for configs, added context option to extra configs