switched to 0 to 1 x/z ranges (closes #45), simplified position scaling