added java doc comments to card class