added docstrings. Made name a unicode string