New updates

made memory check a library.
reformat water simulator.
localize textfield variable.