a lot of changes

rewrote many aspects, created a first documentation