made script executable and cleanup