scrapped es6 and added typescript
added console view