You made the right decision providing the whole truth, explaining yourself and asking for forgiveness on the matter. For future application, if they do not ask you about unauthorized work, do not volunteer the information. Over sharing can also affect. If they want to know if you worked outside...