[PATCH v5 8/8] cleanup: Remove "function" keyword from all functions and correct typos