NFA c like version finished

Final commit