Make TOC window position configurable

Also, return early if no headers are found.