Fixed some math issues, added color, and color config options