* Spelling and docs fixes * Fix #endif comments * Fix function declarations (fix param names and remove duplicate)