Improved toString method and restored dropped factory method.