Adjust formatting slightly and remove some comments. Also remove "#include malloc.h" which seems completely irrelevant.