Adds new functions and fixes a couple typos