Added -v/--verbose flag, prints debug info.
Automated tester for samples with ctest.