added code and examples for revisions to development paper