Added error dialogs to dialog_learn_period, removed learn_period::get_desc, some bug fixes