now prints to file. Added todos