Refactor all floats to doubles, fixes copy functionality