Commented and working somewhat on hardware device