remove unused variables
fix jshint warnings
updated stave comment
fix jshint warnings