Off by 1 error in bsearch
Update README
Fix bug with custom headers