Fixed errors.
Removed table api. Apparently it's a standard lib.