Started working on a refiner

WIP metal refiner.