Improving Sample Program

Improved the sample program to check for correct decryption and dump data to screen and files