renamed fget_commands, cleaned up some printf statements.