Redefined max macro as function
Small typo corrections
Tar gz with modified c code