added functions from the latest Web version
Merge branch 'master' of https://github.com/Slamper/crosslink-viewer