Added comments and some preliminary work on map array

Has an error in my bounds for the arrays, no idea why trying to debug
that.