Added a function to set the city and moved the init code to it's own file.