Fixed remove files deleted remotly function, code cleaned from unused variables and remove some useless print
Fixed the update system and tested the compatibility with the java client, all the operation should work