[minor] removed unused imports
[minor] formatting
[minor] removed redundant modifiers
removed unused classes
removed unused fields
fixed possible NPEs
URL hash and equal methods do IO operations; replaced with URI