Updated javadoc comments
corrected issue in toString() method.