separate file for process init, some changes + doc, process.exit