added prints to task and automatic choice of next task when it's only one available
added prints to task and automatic choice of next task when it's only one available