Fixed errors; Added basic resource system