remove unused variables and useless java doc comments