update time format, show total and real used/free memory, fix some warnings.