Reformatted all code to K&R