rewrite of prosody psola script, and added to appendix