Replace get_signature() with a real implementation.

  This works usefully :)

  Closes #40