Added methods to read/write ints.  More intuitive macros.