Adds updateContestResource and fixes a few bugs