added bounds-based position normalization (see #24), updated debug display to match (see #14)