add docs
fix #4 : add support for a default map func