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