added .gitignore
use function and use it in install script