fix count() to count occurences in each node

and not just simply returns the length of the matching nodes array
fix typo in yuidoc syntax
introduce a build folder with some docs
add a apidocs target to Makefile
add readme target to Makefile