Move method near to the select method

Signed-off-by: Marko Locher <marko@locher.at>
Make the redraw method global and remove the duplicated code from the domain method

Signed-off-by: Marko Locher <marko@locher.at>
Update the Readme.md with the new domain() function

Signed-off-by: Marko Locher <marko@locher.at>