Fix crafting recipes and some code style.