Updated viewer

The viewer now uses c# for the UI and c++ dll calls.