check for args, and fix some syntax errors.   changed to strcmp because == fails on cstrings