Tiny update: Added res folder and changed some code