Convert functions to "ANSI-style".

Don't merge yet. I'm not done.

fixes #64