New standalone viewer

Various minor changes