Added functions to convert to and from APCI type
Added way to send messages