fixed u code style and docstrings