isCircular, isLeaf functionality, tests, readme update