[ExtractionScript]Major Upgrade to Script

Now, the script would be able to SORT intelligently by OnsetTime and
delete duplication by explicitly modeling each log frame into separate
unit.