cw: removed internal min/max points
cw: removed unused 'scr' var and 'rect' type
cw: normaltext->cwesc, added simple test