fixed wrong function call 'error' should be 'err'

http://docs.puppetlabs.com/references/2.7.latest/function.html#err
changed notice{} to notify{} because notice is only callable as notice()
changed another three "error()" functions to "err()"
Merge pull request #4 from c33s/patch-1

fixed wrong function call 'error' should be 'err'