Take into account some review comments.

- Automatically exclude comments path from pages and articles processing.
- Add the file extension back onto the ID.
- Update the documentation.