add default values for tolerance and max height
change configuration concept (issue #7)