Fixed minor bugs with Remove(), add() and contains() methods