cosmetic
refactor database state, add query method
update readme, update comment, some minor execption refactoring
add jar file