Modified method data handling and fix #57
Merge pull request #58 from chaizhenhua/master

Modified method data handling and fix #57