Refactor adding to table
Use Enum to keep track of type in Union
Free memory!
Change old tests to use Enum (TODO check again)
Test for memory leaks
Update gitignore