Doc and tests added