Updated '.gitignore' file and handling of 'doc/' directory.