Initializing module with somewhat working code - no tests, some functions not really working