Made routines more robust
Merge branch 'master' of github.com:NationalMuseumofDenmark/headnet.node.project.natmus-samlinger