A little cleanup and name changes.
Arrays object checking fixed, extend made a little better, some naming changes.