changed methods of NLP module to module_functions, cleaned up specs