more comments, set datadir on begin of script, update