remove pointers
add help
add LICENSE
fix begin edge for single line cycle
change interface and add docs