notes and code for preparing Pew.txt for analysis