Update generate::module to check for an arg (module name)

If none is given, an exception is thrown

Signed-off-by: Philipp Tempel <phtempel@gmail.com>