Add comm library

Resolves issue #11.