edit error text and dialog text

change attribute name for more understandable

add java doc
add new java doc