added FIFO class to engine buffer implementation
minor changes.