use buffer size constant from header file and make header file
compatible for standard C
clean up
fix bug with FoE file name: also send string terminator over channel
fix bug: need to read an 'int' from channel instead of 'char'
send out reset trigger signal if a chanend was given to fwu