converted communication example to ipython
minor cleanup to communication example