demo4: cleanup
demo4: changed the way boxes are made + a lot of comments