Added possibility to send generic messages (without answer logic). Added basic error handling. Added more comments