Fixed off by 1 bug for updating read startpos
Added keynbp to globals.h and changed functions appropriately