Library docs chapter tweaks

- Consistency in heading names
- html fixes
- shared_ptr corrections and add in subheadings
2 files changed