moved the read commands into a class. Needs to add code to convert to byte