update to API 3.1
1. Add sorting method
2. add result filter funtions
Merge remote-tracking branch 'origin/master'