resolves #44

Adds option to snap to values.

Signed-off-by: Luca Béla Palkovics <luca.bela.palkovics@gmail.com>