Classname bufer will now retain value

Also added some lines for debugging