Fix up the create repository code, and also fix up some styling issues