Changed target framework for src from 3.5 to 4.0
Changed common classes namespaces
Added check on parameters