Fixed some errors
Remove cout function

Can be compiled
Merge pull request #4 from Sigurd3000/master

Fixed some errors