better table printing and element removal

using default lua