Add Javadoc for calcFlow