Fix formatting and migrate to bcs-promise for communication