added remove_dump functionality, added comments