Corrected compiler warnings and JavaDoc errors.