Library corrected
register device function added