fixed if/fi error, printing errors to stderr, removed root rights requirement, instead, there is now a warning if you ARE root, and an error message in case permissions for the device are borked.