Clean up transaction class, change double to Double.