Minor Errors in the interface fixed.

The get method now also throws an IllegalStateException.