Replaced `fail!` macro with `panic!` macro.

The `fail!` macro has been removed from the rust language.
Merge pull request #237 from Binero/master

Replaced `fail!` macro with `panic!` macro.