Device needs to be opened before being accessed for read/write.

not opening the hid device before reading/writing to it causes segfault.