Moved shared objects into a separate file.  Completed relative entropy calculation too.