minor bug fix and refactor

1. fix a potential bug in 'fobj' (sigmav)
2. use 'logpibp' and 'updatem'