shortened license text in each file
moved redraw to a function