corrected errors in sample trigger module, fixed a few other typos

corrected errors in sample trigger module