src: Fix a bug related to stdout
src: Improve output
src: Fix some error messages
src/Makefile: Build cuda_sample and cupti_trace when 'make' is invoked