update installer

devided to functions
make mode for rpm and source