Update pathes, add tmp for intermediate files
Add figure tasks
Create needed dirs lazyly