Added command to toggle IR, seperated binary read into "to file" and "to memory" versions.