Use proper exceptions

Use proper `NotImplementedError` as exception. Also, uses standard Ruby notation for raising exceptions.