fix some bugs, try to replicate existing
duplicate /docs/api
Merge pull request #34 from rmosolgo/rm/generate

rework bin/generate_docs