most bugs fixed
Merge pull request #7 from adolfo0620/edges

some bugs fixed