fixed ParallelTasks.cs bug
improved code
added examples