Ultimately a simple link list does not do all you want, so now the history maintains a list of visited links that are useful to display, but also a backlink list to let the user move to the previous pages.
A config file is now created and used, and a few hardcoded things in the source have been moved to the config file \o/