adding some debug messages and removing redundant copyrights
adding a simple sample to check binary data exchange