Fix compiler warnings
add missing @Documented annotation