Add newline to end of files and remove whitespace from end of lines
This is equivalent to IO.h except for memory mapped io instead of IO ports