remove cruft.  Clear status line at end of function.  Add comments
shorten if statement for url_command
code works again, added a reminder to make things at least minorly understable.