Fix linting errors and bugs
Fix noempty bug
Remove unused variables and functions
Remove one more unused
Merge pull request #79 from gscshoyru/fix-tslint-issues

Fix linting errors and bugs