Fixed table and array emission and error handling, updated .gitignore