tests added; minor fixes in documentation