fixed file names and updated main script