we fix status complete and froze for projects, if all tasks for this project have statuses complete or frozen, otherwise we remove these statuses
reform code, ad remove all print_r()