If the temp light is flashing, it could just mean low coolant level.
As for the sludge, check in your oil filler for any sludge in there. A little is acceptable, but loads, you need to start asking questions.
Are you sure the last owner has not sold the car because of these problems?

Maybe you should direct some Q's at him/her.