Intermediate values now written to and read from file
Updates to boys function intermediate