Add an "Auto data Range" (A) feature and fix various issues