Replaced hard-coded constructors with initialization methods.

this was an item on the to do list, and it's done now.