Cleaned up the FIFO algorithm,  Formatting