Add createLinkElement and createAnchor methods
Reorganize existing methods