Implemented the mark and removal of discharges that have completed all their stages
Added a GET interface to add discharges remotely