A few fixes and improvements.

A few fixes and improvements.
SGB viewer started. Also, a few minor changes.

SGB viewer started. Also, a few minor changes.