replaced tab by 4 spaces
modified engine.c to conform to my own coding style