Added logout method
Added comments to logout method
fetch cas from composer