add .DS_Store to ignore
add required reg param 'mac' and allow param 'comment'
rename method to respond_error
fix typo in var name