Added dist
handle default params overriding (eg. timeout)
cleanup selection on setSelection
fixed selection handling when set on analysis