Implement ns macro

Implementation of #27