fixed documentation and tests