added function to clear aborted, completed or failed dcc transfers. Some helper functions created