Extracted logic for getting bytes from the ELM
Bug fix
Format
Enable all compiler warnings