The code that was broken was in fact the part about him not telling you about it.
Not cool man... not cool..
Also, I wouldn't agree with being friends with him again, cause he was a DICK for totally screwing you, bailing on you, and only when things were bad for him did he try to be friends...