add more self-checks
fix comment spelling
remove implementation of impossible events

+ simplify some code
+ add more comments
Temporarily replace point sampling with naive alg.
reformated writeTree and removed unused file
cosmetic changes
add more self checks + reply to comment
improving unit tests
possibly fix issue #8
merge from master