bug fixes for previous commit, refactored bravec and ketvec to single fockvec method