Completed documenting code with JSDoc