added links functionality to doc_display()

cleaned up testing styling, added link insert to table support.