Figure node2

Rebase figure_node #12 from master

Hash version is completed. Please review it.
Sample usage is in sample/README.md