improved the nkr script
refactored some stuff, added --edit
adding passing spec for parser
some more bugfixes found by specs yay testing!