added comments in base.php
simplified settings.php
moved main class to main.php
used constants in uninstall.php rather then properties