Improve haddock
Remove tpe function (seems useless to me)
Minor readability tweaks
Remove basedir frome hiera config file record