Remove executable mode from Makefile
Add pattern to gitignore for (X)Emacs backup files
Remove unused variables
Try to fix odd use of strncat that GCC was complaining about

'output' is a pointer, so sizeof(output) is not going to be of much use.
Instead use the fixed size of the 'hex' source buffer.