Mainupdate

Resourcesystem changed.