added flush method
enabled interrupt re-enabling code
include defs.h
added commented getTotalSize()
changed serialInput()
changed serialInput()
updated write()
simulator updates