Some cleen up of the code structure.
Simplified the graphictask.
GraphicTasks is now drawn in correct order.
Fixed consistent code layout.