fixed bugs
Merge pull request #2 from Zebreu/master

fixed bugs - printing