Did a bit of refactoring in edit tool. Removed ~40 lines of code of ~300
lines.

Fixed a bug in edit tool, where the models weren't moved.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>