Function mapping

* Allow the creation of function mappings
* Allow nak to be run from a script
* Lint