Clean up code and round floats