Standardized formatting

Created with `indent *.c`
Got rid of gcc warning "return type of ‘main’ is not ‘int’"