Removed unused imports
Added lots of javadoc/Cleaned ResourceHandler