Refactoring of all code

Moved type "work" into constructors, created "setters" for collections,
validation calls as well. Simplified web service calls.