fixed a few memory/inheritance problems. now at the point where an example replicator can be implemented.