small edits in tutorial and decorated pwa.py so that relevant parts can be referred from the documentation