Added additional method to interface.

Now checks if output has been spent first.

This closes #6
Merge pull request #8 from jimmysong/6

Added additional method to interface.