Updating script to v0.3

– check arguments, use argv[1] as target table