renamed environ to params
min
rebased on metadata, improved docs