Update pitfwaed.R

Fixes some bugs in earlier version and adds yearly cross-tabulations.