There isn't enough commenting in the code for me to have a clue what it's doing, besides blinking some LED's. If you don't have PBP, I don't see how we are going to be able to help you, seeing as this is a PBP help forum and all. It is fairly common for people to come here not knowing much about PBP, and for them to ask us to program their project for them. But usually people helping here will just want to assist in a project, and not do the whole project for someone, for free. If you really want to do it, I suggest using a free product, like assembly, or purchasing a compiler you are interested in. And then get some code together (by reading it's manual, and learning all you can), then ask for help on the forum for that compiler, (whichever one you decide on). I also second the recommendation of using a tone decoder chip. They are pretty easy to work with.