Corrected JavaDoc and compiler warnings/errors