fix issue #1 - throws an exception when extracting an out-of-range bit
fix issue #4 - added warnings for out-of-bounds reads and writes to mem_t instances
added unit test for issue #6
Merge pull request #61 from smirolo/master

fix a couple long standing issues