Adding *flatMap* implementation
Updated docs