Added packet send callbacks and result codes
Fixed some header stuff