Changed reg read/write functions to use nbytes param
Merge pull request #28 from xross/master

Reg read and write functions now use nbytes param