Properties of ultrasmall superconducting grains