add a non args constructor + extrac checks for serverURL
add a some javadoc to the buildUrl method