changed install script
modified install process because source ~/.bashrc was not working
added check for closed file pointer
Merge remote-tracking branch 'upstream/master'