Fix location of dist libs in README
Fix bug in components - it should not be used with directed graphs
Add JSON encoder + decoder