libslc: Initial implementation of fflush and fwrite + Formatting changes in fclose.