Refactoring create_mkpls, get_completed_task, create_bgpls, get_music, doMusic, delete_task_of_ntask, tdeltask, task_type_valid, exist_dirs, task_array, isfexit, set_status