Open and ioctl working marginally. Need to flesh out functionality