corrected pi.txt file locations and cleaned up