initial commit of viewer code