Fixed all the enhancement issues, facing compilation problems with perlbrew.
all perl enhacements fixed, tested on ubuntu
final changes