* rewrote many code snippets using generators
* organized config and params management