better retrieval of cozy instance
refactor getStatus function
variable renaming + log removal