updated demo.m and add function to normalize width of a gui.