added composer.json and refactored module.php