Added functors
Allowed callables
Doc
Using functors
Removed useless comparisons and operations