commandline args added
scripts added
fixed errors on mac