most function codes are interpreted to be what they are now
tested, added more messages
misc changes