added a lot of stuff and started on the table functions (fundamentals complete)