More concise error messages on environment mismatch
Correctly set the metadata fields to NULL instead of '' if no such metadata field is present
Remove unused function
cleaning up
add gitignore