added comments. implemented script files