Decompilation to kotlin and some refactoring

- added kotlin support
- refactoring
- bug fixes