Implement weighting of resources
Fix a typo in resource size calculation
Renaming the precious attribute
Fix docstring of corpus
Merge restyle into attribute dictionary, no longer a standalone property
of the resource class