Small code reorganization.

Renamed some functions, changed their order, added "Not implemented"
warnings.