Document the exported functions and constants.
Add extern statement. Also fix the strlwr definition on Windows.
Add files with test program.