rewrote how html document is made. A lot cleaner now! Also changed some
default sizes in gui.