Polishing code.
Added some comments on main code. In addition, wrote a rather simple script that extracts the logging of a given pid to a file suitable for excel. The kernel log is read from /var/log/kern.log.