refactor ast2dot mapping code
remove (for now) superfluous params from flatten func
add dotmap.js to dependencies