Fixing Samples : Includes modifications in all samples, for displaying
the error's in a more user friendly way. Modifications for NPE's in code
also a part of this commit.
Merge pull request #69 from VimalDhupar/FixingSamples

Fixing Samples : Includes modifications in all samples, for displaying