Reduce duplication
Fix a code formatting issue
Ignore docs/api-guide.pdf