Removed unused function.
Tighten up a few things in the prototypes and drop a couple unused functions.