started some generalizing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
moved to a modular onject constructor...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>