clean up module lib, fix issue #9, improve example module