Added some comments. Also added basic depths.
Added number of CS lines and JS lines. Also the explode ratio. Also per line operations. Condensing res array.