Format some source code
Fix critical bug in reflection utilities
Refactor listener registration process
Improve and refactor preferences UI