fixed a bufferoverrun
added some checks for stability
increased version
Merge pull request #69 from jahntheman/master

 fixed a bufferoverrun