Mainly added documentation and documentation-related files and directories and fixed minor things in several header files.