Added gitignore and gitattr, rewritten everything in plain C