registry read fixes

Uses wire.h library to read/write/init registers. Usage example added.
more functionality added. (untested)