Added more code to allow reading of position register and populating sysfs with value