Tasks can now be sorted manually.
Some code sanitation.