Fixed uninitialised arrays
Fixed inconsistent K&R style