rustpkg is no longer part of rust, put raw instructions
link is deprecated
allow dead code
remove unused imports
loop only once
fix println
Merge pull request #2 from marianoguerra/master

make it work with latest rust