Sorted function names in alphabetical order and added JSDoc.