Cleaned up some cruft in the pulse sample program.