added dynamind's changes to solve issue #5
thanks a lot!
version nr changed to 0.1.3.