fixed klocworks issues #38 through #41
changed localtime --> sample_time
Merge branch 'jjsong2'