Reformatted code and added linting