rearranged methods in tools.py. added a tutorial file
Merge branch 'master' of github.com:salilab/pmi