Added table parsing function

Almost to full functionality! Still porting stuff from the Extendscript
version.