Arduino Reboots it self when it receives a text message it has to process

It's a bit long and lacks comments, and not in a language I can read. Can you give a more detailed description of how the program flows, while not getting an SMS, and then how it works when it receives an SMS? Helps a lot if you explain it in words.