Fix typos
Add documentation to defer function
Fix travis script