heartbeat stuff

added ability to set the hearbeat delay
also set the default bytearray type to 0 (heartbeat)