Started adding JSDoc (copied from Flight docs)