corrected setall function and added smart add to addtask(bool)