Added license info and javadocs.