Added protection flag, bugfixes, better download script