Re-factory of the default routine implementation + documentation
Documentation + minor optimizations