moved papi build script to separate shell script and completed papi test code for host and mic