The constituent quark model revisited. Masses and magnetic moments