Implemented FrameFIFO class + some more code clean-up.