Add an add_node function.
Add template file.
Fix flake8 errors.