fix generation of documentation
change permissions on gen_documentation