working on  transactions validation
small cleanup in  main.cpp