updated script with notes and relative directory change