initial commit of main script
initial commit of functions