Finished util.c functions and started the init() function