corrected prefab/scene

misc cleanup of lightmap code, added regions to make generatemap.cs
easier to read.