Add documentation for NewFromMap