updated for use as module
update
fixing issue with controller.php
better const naming