Remove extra blank lines detected by rubocop
Use `fail` instead of `raise` to signal exceptions