Merge pull request #1 from hieuhoang/master

minor change for moses
bugfix.
rename lm.h to dalm.h
stub fix for <unk>.
retrieve OOV words. modify charset bugs. modify wscript to work with moses.
add wordstxt and bugfix.
regression test for Mac OS X.
Merge pull request #3 from jnory/master

bugfix and add state function