adding copyright, javadocs, and to string methods.