[S02_func] some cleanups and removals of unused stuff
[bin] add extract script instead of ee() function
[S02_func] more cleanups, reindentation and shit