Fixed segfaults from commands with argument checking.

Added argument checking for commands, and also added a check for server info.