Changed variable names

changed some variables with “p”s in them to instead have “per”s for
consistency and easier replication for new fields