added some comments and echoes to script