Refactored scripting api; changed match_get functionality; updated scripts.