Finished first implementation of the tasking system
finished first implementations of a tasking system
Fixed number of bugs in tasking system

Added some unit tests. The code is tricky enough to require it :-)