code cleanup

added note for url encoded query string in javadoc
removed warnings
organized imports
ignored wrong sonar violations
a little bit formatting