Fixes in comments/doc
Fix function declaration syntax (posix -> ksh)
Fix doc