I'm no expert but it sounds like something on the logic board is screwy. If it was just the fan, I'd say it was a sensor but its the charging too that does it. Switch it all and you'll have a great running machine with a nice LCD.
Also, does that 13" screen have the flickering issue.
Also, does that 13" screen have the flickering issue.