Converted some Word8s to ChannelIDs (a newtype)
added wrappers for peer functions