Changed location to be resizable. Half way through. Added lots of comments