fixed < in quat_distance (<=), output options for paintGrid_cmd.py