Fix documentation flags and Javadocs