remove karma
add edit functionality, improve code quality

- fix mixed space and tabs
- add lots of missing semicolons
- add edit functionality