Fix formatting(except for missing javadocs)
Test arrays with the event class generator.
Added ItemStackComparators. Merges #327
Fixed incorrect javadoc