Initial import of PWS template; minor fix in PWS.py