Remove some unused functions and add some proper usage instructions.