added method to delete branches and one to list existing ones
deleted never reachable code (2lines)