ems: indentation and whitespaces
ems: add perror after system calls.