added more code to make the output look better

fixed bug in setting size of div
added code to make list of links longer
added code to detect rectangles on the boundary
added code to make bigger tables