add library and fix some bug
add psts library and fix bugs
Merge branch 'master' of https://github.com/DonLiangGit/Perfatch