license added and type fixed
Moved recursive method to lib
Improved the output in stdout
change in the version