add a gitignore file
add a json serializer for inventories.