improve javadoc
fix line and column count for text-level rules