Disable SHM with Schlage Lock Code?

Now that I have my sensors working, I would like to be able to do a few things. I would like to be able to disarm my security system when I unlock my door with a code. Anyone that is welcome at our home will use that door, so it would be a good way to disable the alarm. Is there a way to do this? Also I would like to have it automatically arm when everyone is gone. What is the best way to achieve this? Maybe an arrival sensor for each person or would a keypad be better to use? Or just use our phones to manually set it?