Comments & code cleaning
main: use constant flags for IPC permissions