replace 'result' field with 'errno'

1. replace 'result' field with 'errno'
2. added .gitignore and clear .bak files to prevent clutter