Updated generation code

Updated generation code to use a 2d vector instead of a Tilemap or Array in order to take advantage of Actionscript generics.  An internal vector of tile types is used, where a tile type is an integer that can be used as an index.  

Some comments were added as well as some other methods and small changes.