FW-16 refactoring task priorities. cleaning scheduler.c