added uint16 to byte conversion, bash scripts