Added recipes and smelting. General code cleanup.