Revert "Code refactored to readable format"

This reverts commit a755c8de932ec20549ddba9e34e1ece9d8dd6110.
[fifo] Added first version of program