added ioctl commands
added ioctl and device tree parsing. Devices tree still buggy