Change root link and viewer cleanup

implements the specification agreed upon in issue #49.