Version number changed.
Missing var declaration for "result" in addPreauthorization() and addTransaction() added. Credit to Manoj Sudra for spotting my oversight.