Add javadoc, change default credentials type