added datastructures.o to makefile and fixed other various bugs
implemented a while loop for reading
forgot to add the makefile
let me pull
please let me pull