MINOR: change ambiguous variables naming.
TEST: Add docstrings.