lots of changes

initialized arrays, fixed up some incrementations in the first loop,
removed some stuff that isn't needed at the bottom, added regex
description