First big update for settings.class.php

Added methods (not stable)