Refactorized and commented communnication package