If we knew what this code was written for we might be able to answer your other questions, but random code ...