Merge pull request #32 from mjberger/master

trimbd bug fix