Refactoring names and assignments
Removed suspicious bits of code.

Array aliasing, probably decompilation artifacts.
renaming, refactoring.
Set up a dummy reporting system.