Zeroed all default numbers.
Bugs are stored in an internal id => bug map.
Added comments to function heads.