Fix NullReferenceException when document is closed
Bump up version number to 0.3.1
Hack around Clang's ignorance of AVR named address spaces by predefining them to blanks
Updated README.md for 0.3.1