first version java text formatter
add loger and change comments