Removed more checks i found unneccassary, such as inline conditionals and increased linelength, modified regexp for trailing spaces (doesnt count comments