[fifo] Added makefile
[fifo] Remaked for fifo name *.fifo. Code partly refactored.