Added functionality to use subprocess with command line
functions that contain pipes
Changed /proc/cpuinfo to a sysctl -a | grep kern.smp.cpus to
obtain number of cpu cores in the system
Other Minor fixes