Find PAPI Library
Remove unused code