Electronic and magnetic properties of graphite quantum dots