install.sh to create executables + many minor fixes