Added Java classes and fixed spelling error