Add toString to Transaction and Commands
Implement equals and hashCode for Commands