refactoring
add transaction and standardlize wapiti output
add select frequency by error type