Update process.js

Hi Ilia, I've started creating commenting the code and changing some minor stuff.