added test and continued documentation.