refactor, add floats, YAML as input format