Fix issues pointed out in http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=18299

respect conventions of the example and do not port to ROOT coding
conventions the whole code.