fixed memory consumption problem
removed mem debugging lines
Merge pull request #26 from zelgerj/master

fixed memory consumption problem