cleanup document listener.
Merge pull request #29 from eprogramming/master

cleanup document listener.