changes in examples reflecting amendments in code
better work with hdfs