removed console.log
fixed isLeaf
updated version and readme