Deleting bonds in Discovery Studio

Hi folks,

I'm relatively new to DS and would like to perform a rough animation illustrating a chemical reaction involving NH3 and O2 at a surface using a perl script. 

Can someone guide me (code is always appreciated!), as to how to break some of the bonds in ammonia and oxygen, then form new bonds between those atoms.  I assume that once the prouct molecule is formed, a "clean" opeeration can be performed.

Thanks in advance!

Bob