check whether MPI has been initalized before trying
handle token passing correctly when there is one process
Merge pull request #8 from adammoody/master

Conditionally call MPI_Init and handle single-rank case in token check