Add basic file build and cleanup for transpositions
Remove cfunctions dependence by creating .h from template.