changed meshgrid indexing ij -> xy in sample_H
minor changes