Fix segfaults
Rename res directory to asset
To be consistent with naming elsewhere