jsDocs comments added

- removed some unused variables