Fixed some extra spaces in code
Print size result for compile function
write_flash needs to send data in blocks of 256 bytes solved, minor corrections