fixed formatting
Modified so it will work on data in the working directory.