Fixed addOutput method
Corrected pushtx endpoint