Add missing argument javadoc.
Improve error messages.
Remove unused method.