Added install script
Fixed installation script and refactored makeDist.sh
Merge branch 'installscript'