add inspect method
Merge pull request #137 from mikedao/inspect_method

add inspect method