I had no problems with the history thing on mine. I am using v5.47d. As far as the profile fields remove all the original print lines do not keep any of them behind. Leshracs code adds them automatically. It kinda "searches" for more than 14. The only thing you got to do with the profile fields is add them to the 2 parts of the code like this:
IMPORTANT: If you have additional fields in your profile, you should include them into the code above. You can do so by using the following format:
-----------------------------
$profileinfo[location of the field goes here] = "Variable that would normally be printed goes here";
-----------------------------
Create an additional line for each additional field you have. Place these extra lines directly BELOW the following:
-----------------------------
$profileinfo[$KProLoc] = "$Karma:$LastKPosts";