nearly all class names now conform to google standards, with CapitalNames.

also fixed bugs and tidied up code.  Also made some hard-coded numbers based on a mutable setting.  Getting closer to release candidate!