move scripts to dir

Moving scripts to separate dir, add datadir initialisation