Remove useless codes

Remove console output
Remove unused variables