Beware! Some of the information may be SER or OpenSER 0.9.* specific. Be sure to replace break; with return; when not in a switch block.
Please feel free to link to any other good tutorials.