Sample application changes

We modified the sample applications to easier to use
- change the way the user must enter the client ids 
- code cleanup