fix negative amount issue and add transactions command