Revert "Remove the Bug class, it hasn't been used in a long time"

This reverts commit c378cc34438a8361514105e01581e23eaa8f1db6.
Eric included some incomplete stuff here.