Moved common types to common.h

Making adjustments for negative indexes. Can assume that xRange and yRange will be set before the Initial keyword read,
either by the flag or in the aut file.

Just remembered, add in seperate flags for xRange and yRange settings.