Add issues module
Fix a few bugs, mostly to do with crappy code