added functionality to actually add the file to the memory, reading it in through an ifstream, and a few other things