fixed github issue #2

- also added unit tests to keep track of potential regressions
fixed issue #3 on github
fixed issue #1 on github
fixed issue #4 on github
v0.4.1-beta

- let's test this for a while and if nothing goes wrong, this version will be
  sent out as the next official iteration