Lints the file and simplifies the code