add return value to setAgentWithComputerid

This method can be tested correctly (in unit tests or from other part of
code)
clean space in line endings