Updated to be more efficient, and added technology research
File cleanup