add resources in jigsaw / clean code / add comments / fix some bugs on the resources repartition