Add modified apidoc script to generate inheritance diagrams. Add apidoc's license. Update module rst files.