singleCap and multiCap need to initialised at 0

also cleaned up some commas  and such