Changed the process catching lines to use linux and added few comments.