fixed typo and JavaDoc