Fixed a bug where reading a word in memory would result in a bus error. Also simplified a lot of the API of devmem.c