Rearrange functions in an order that makes more sense.
Write area object, code for cloning area object, createAreas function to create area objects for use in makeMap function. Delete obsolete functions.
merged