Merge pull request #14 from jcrom/master

fixed some adapt bug，add some comment.