Added javadoc to Contract.