added pom file
added .gitignore
Added javadoc; added otherwiseThrow methods