Scalar quantities now working. Coloring strange still.
Cleaned up preferences.ui and added some functionality