javadocs and error checking