Changed initalise_latent to take lower of init=PCA and corrected import