Created quantity module from code in 'core'

Changed package
Minor changes required for scalatest 2.2