added comments
changed rest endpoint to use SSL