Fixed typo and compile errors. refs #76
Merge pull request #77 from t2v/feature/fix_sample_code_76

Fixed typo and compile errors. refs #76