updated readme
removed debug / renamed inner function to recurse