generate stash references

variable resolution pp_rules fix

simplified output dictionary

pep8

path refactor, gen_helpers

rules formatting tweaks

metarelate up to date

review changes