allowing for string definition of the algorithm
Adding constructor to init the object and set some config