Memory size formatting function added and UI improved