Merge pull request #16 from smirolo/master

done
Merge pull request #17 from smirolo/master

forgot to commit the unit test
fix remaining scalac 2.10.1 warnings
Fix embarrassing off-by-one error in printf
revert use of import scala.lang. Use compiler flags instead such as to keep support for scala 2.9.2 (at least for now)
fix: module prefix added twice
Merge branch 'master' of git://github.com/ucb-bar/chisel