Pass file info when creating documents.

Uses man section number when creating man page, closes #21.
Update gitignore.