added view function and other minor tweaks, apparently com-host -e doesn't work so I'll have to fix that