documented, fixed download script