Great question. It would be nice to make amends with your friend but it would be better to talk about this with a priest.
Baptism is the first and chief sacrament of the forgiveness of sins: it unites us to Christ, who died and rose, and gives us the Holy Spirit.
By Christ's will, the Church possesses the power to forgive the sins of the baptized and exercises it through bishops and priests normally in the sacrament of Penance.
"In the forgiveness of sins, both priests and sacraments are instruments which our Lord Jesus Christ, the only author and liberal giver of salvation, wills to use in order to efface our sins and give us the grace of justification" (Roman Catechism, I, 11, 6).
For more information go to this linak and look for section 976 and following.
http://www.usccb.org/catechism/text/pt1sect2chpt3art10.htm
Peace and every blessing!