Period-adding and period-doubling phenomena