Added bug module

Added the bug module. Still contains many errors
Added bug entity and interface