fixes sonar issue: Performance - Should be a static inner class
Updated audit hook to use pre data, which simply changes the audit json generated
Merge pull request #3 from jewzaam/pr-sonar

Fix 2 major issues from sonar