Closed issue #95, issue #94, started doing tests.

Also, In this commit I have started adding functionality to model some f
the components as workflow components. There are some workarounds still,
that have to be fixed.