Added io.h
Remove old comments from datastructs.h
corrected random value initialisation
added output function