Improved robustness on setting the paperwork's document link (tildes, trailing whitespaces and periods)
Merge branch 'dev'