Removes comments and extra lines