Adds 'RecordNotFound' error

Also added 'debugger' as a dependency, and made tests pass.