Added function declaration.
Fixed to typos.
Changed a macro definition just in case.