code clean up
implement unit tests and add bankfee parsing