Adding in basic transfer of code from GPy and other sources.