Added filestream
Reading objects correctly

Made objects pass to function by reference
Done! ...Maybe

All is working as I believe it should. Needs testing.