write_function: Changed output format
initialize: removed todo comment. pointers are associated throughout
program