update group documentation
made variables local
fixed Arc's near method