I figured out the tile layering thing:
0xABC, where
A = Section, vertical, of 256 tiles in a 16x16 block dividing Pics1.png into 16 sections:
0 2 4 6 8 A C E
1 3 5 7 9 B D F
B = Y plane of each array from A.
C = X plane of each array from A.
Also, I have added random tree placing, but I'm not giving that out, as it took too long. Anyway, I'm posting an image of what the script does to an empty level:
