Removed unsed code from module.php and moved under src dir