updated testing and documentation