Added the environment methods
Added the exception for non implemented functionalities
Added the PHPDoc for getHost() and an exception if the called method doesn't exist
Added the setting of the environments