removed all trailing whitespaces
introduced settings hash and jQuery.extend() function
Explicitly returning 'this' in case 'selection' got changed

If the plugin is used in container mode, the value of the variable
'selection' is changed, which would mean that the value which is
returned is different from the value on which the function was
invoked. In order to fix this, the function now returns 'this'
explicitly.