Initial code commit
Removed unused references. NET version changed to 4.0
Some refactoring