add location converting function to starts and lengths
Merge branch 'master' of https://github.com/billyeh/billyeh.github.io
typo in function