Added set and get functions to AVMessage

just added some getters and setters and the ByteArayOutputStream to this
thing yes
Code Clean up