Updated comments and implementation of toString().