fixed issue with readwrite

added addressing to get around unadressed device. Improved for
non-formal programming.