Bugfix: Document could not be created because it assumed a predecessor
Majority percentage copied to issue from ruleset on creation of issue, also changed form decimal to int
Refactoring stuff removed (only entered to help people upgrade)