implemented melting temp claculator refactored a few thiungs