Analytical and numerical properties of Q-balls