fixed HUP handling
cleaned up code; added help text
clean task