Added -R option upon remove to ensure dependencies are also removed.