Inventory now constant size

new error code in const
gitignore fixed